package ThreadTest;

/**
 * @author 刘全
 * @date 2021/8/7
 */
public class GetRunnableName {
    public static void main(String[] args) {
        MyRunnable mr = new MyRunnable();
        Thread t = new Thread(mr,"子线程");
        //1.Thread t = new Thread(mr,"子线程");
        //2.t.setName("子线程");
        t.start();
    }
}
